#include "SQLUnaryOperator.h"
#include "../../../utils/BOOL.h"

SQLUnaryOperator SQLUnaryOperator::Plus(make_string_ptr("+"));
SQLUnaryOperator SQLUnaryOperator::Negative(make_string_ptr("-"));
SQLUnaryOperator SQLUnaryOperator::Not(make_string_ptr("!"));
SQLUnaryOperator SQLUnaryOperator::Compl(make_string_ptr("~"));
SQLUnaryOperator SQLUnaryOperator::Prior(make_string_ptr("PRIOR"));
SQLUnaryOperator SQLUnaryOperator::ConnectByRoot(make_string_ptr("CONNECT BY"));
SQLUnaryOperator SQLUnaryOperator::BINARY(make_string_ptr("BINARY"));
SQLUnaryOperator SQLUnaryOperator::RAW(make_string_ptr("RAW"));
SQLUnaryOperator SQLUnaryOperator::NOT(make_string_ptr("NOT"));

SQLUnaryOperator::SQLUnaryOperator(string_ptr theName)
{
	name = theName;
}

SQLUnaryOperator::SQLUnaryOperator(SQLUnaryOperator *sqlUnaryOperator)
{
	this->name = sqlUnaryOperator->name;
}

BOOL_ptr SQLUnaryOperator::operator==(SQLUnaryOperator &rgt)
{
	return (name->c_str() == rgt.name->c_str()) ? BOOL::TRUE : BOOL::FALSE;
}
